# -*- coding:utf-8 -*-

from com.mat.rpa.utils.globalConstants import GlobalConstants
from com.mat.rpa.views.workWindow.leftPanel.directiveTree import treeItem
from . import clipBoardOperationConstants

class ClipBoardOperationSubDirectiveTree(treeItem.TreeItemWithID):
    def __init__(self, parent):
        super(ClipBoardOperationSubDirectiveTree, self).__init__(parent)
        self.createClipBoardOperationTreeNode()

    def createClipBoardOperationTreeNode(self):
        self.nodeType = GlobalConstants.treeBranchType
        self.directiveType = "clipBoardOperations"
        self.setText(0,"剪切板操作")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, clipBoardOperationConstants.ClipBoardOperationConstants.addingFileToClipBoardDirective, "将文件添加到剪切板")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, clipBoardOperationConstants.ClipBoardOperationConstants.settingContentOfClipBoardDirective, "设置剪切板内容")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, clipBoardOperationConstants.ClipBoardOperationConstants.gettingTextOfClipBoardDirective, "获取剪切板文本")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, clipBoardOperationConstants.ClipBoardOperationConstants.clearingClipBoardDirective, "清空剪切板")